﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RequirementAndBug.Common.Entities.UserModels
{
    public class UserLogin
    {
        [Display(Name = "登录账号")]
        [Required(ErrorMessage = "不能为空")]
        [StringLength(30, ErrorMessage = "长度不可超过30")]
        public string UserCode
        {
            get;
            set;
        }

        [Display(Name = "登录密码")]
        [DataType(DataType.Password)]
        [Required(ErrorMessage = "不能为空")]
        [StringLength(50, ErrorMessage = "长度不可超过50")]
        public string Password
        {
            get;
            set;
        }
    }
}
